/*
 * Copyright (c) 2006 - 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: app2022 - StudentTest
 * <p>Powered by webrx On 2022-01-14 14:28:49
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class StudentTest {
    public static void main(String[] args) {
        var st = new Student();
        st.setId(6);
        st.setName("李四");
        try{
            st.setSex("女");
            int i = 2 /0;
        }catch(ArithmeticException e){
            System.out.println("分母为0");
        }catch(SexException e){
            System.out.println("性别设置错误");
        }catch(Exception e){
            System.out.println("未知");
        }

        System.out.println(st);
    }
}
